import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [];
const files = import.meta.globEager('../../views/**/router.config.js');
for (const key in files) {
  const element = files[key];
  routes.push(element.default);
}

routes.push({
  path: '/',
  redirect: '/1-Linkage-old'
});

const router = new VueRouter({
  routes
});

export default router

export { routes }
